# coding: utf-8

{{>partial_header}}

from setuptools import setup, find_packages  # noqa: H301

NAME = "{{{projectName}}}"
VERSION = "{{packageVersion}}"
{{#with apiInfo}}
# To install the library, run the following
#
# python setup.py install
#
# prerequisite: setuptools
# http://pypi.python.org/pypi/setuptools

# read the contents of README file
from pathlib import Path
this_directory = Path(__file__).parent
long_description = (this_directory / "README.md").read_text()

REQUIRES = [
    {{{setupRequirements}}}
]

setup(
    name=NAME,
    version=VERSION,
    description="{{appName}}",
    author="{{#if infoName}}{{infoName}}{{else}}Konfig{{/if}}",
    author_email="{{#if infoEmail}}{{infoEmail}}{{else}}engineering@konfigthis.com{{/if}}",
    url="{{#if packageUrl}}{{packageUrl}}{{/if}}{{#unless packageUrl}}https://{{gitHost}}/{{gitUserId}}/{{gitRepoId}}{{/unless}}",
    keywords=[{{#unless removeKonfigBranding}}"Konfig", {{/unless}}"{{{appName}}}"],
    python_requires="{{{generatorLanguageVersion}}}",
    install_requires=REQUIRES,
    packages=find_packages(exclude=["test", "tests"]),
    include_package_data=True,
    license="{{#if licenseInfo}}{{licenseInfo}}{{else}}MIT{{/if}}",
    long_description=long_description,
    long_description_content_type='text/markdown'
)
{{/with}}
